from rest_framework.viewsets import ModelViewSet
from meiduo_admin.my_paginate import MyPageNumberPagination
from goods.models import SPUSpecification
from . import specs_serializers

#1,specs
class SpecsViewSet(ModelViewSet):
    pagination_class = MyPageNumberPagination
    queryset = SPUSpecification.objects.all()
    serializer_class = specs_serializers.SpecsSerializer